package com.dao;

import com.entity.system.UserAuthentication;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface UserAuthenticationMapper {
    int deleteByPrimaryKey(@Param("id") Long id, @Param("createTime") Date createTime);

    int insert(UserAuthentication record);

    int insertSelective(UserAuthentication record);

    UserAuthentication selectByPrimaryKey(@Param("id") Long id, @Param("createTime") Date createTime);

    int updateByPrimaryKeySelective(UserAuthentication record);

    int updateByPrimaryKey(UserAuthentication record);

    UserAuthentication findByUserId(Long userId);

    int updateByUserId(UserAuthentication authentication);

    List<Long> findUserIdByMap(Map<String,Object> map);
}